﻿#region Using References

using System;
using Beaker.OpenCube.Dynamic;
using Beaker.OpenCube.IO;
using Beaker.Services.FileSystem;
using Beaker.Services.Locator;
using Microsoft.VisualStudio.TestTools.UnitTesting;

#endregion

namespace Beaker.OpenCube.Specs.Textures
{
	[TestClass]
	public class DynamicResourcePackSpecs
	{
		[TestInitialize]
		public void Initialize()
		{
			ServiceLocator.ClearLocatorProvider();
		}

		[TestMethod]
		public void Integration()
		{
			IFileSystemService fs = FileSystemService.Default;
			IFolder mc = fs.GetSpecialFolder( Environment.SpecialFolder.ApplicationData ).GetFolder( ".minecraft" );
			IFolder ovo = mc.GetFile( "resourcepacks", "[1.6] Ovos Rustic Redemption v1 (for 13w25c).zip" ) as IFolder;
			IFolder mca = mc.GetFile( "versions", "1.6.2", "1.6.2.jar" ) as IFolder;

			IFolder pack = ovo.Fallback( mca, mc );
			var resourcePack = new DynamicResourcePack( pack );
		}
	}
}
